home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cato / Xm / XmClipboardStartCopy.z / XmClipboardStartCopy
Encoding:
Text File  |  1998-10-20  |  14.1 KB  |  199 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddSSSSttttaaaarrrrttttCCCCooooppppyyyy((((3333XXXX))))  UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV  XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddSSSSttttaaaarrrrttttCCCCooooppppyyyy((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddSSSSttttaaaarrrrttttCCCCooooppppyyyy - A clipboard function that sets up a
  10.           storage and data structure
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.           ####iiiinnnncccclllluuuuddddeeee <<<<XXXXmmmm////XXXXmmmm....hhhh>>>>
  14.           ####iiiinnnncccclllluuuuddddeeee <<<<XXXXmmmm////CCCCuuuuttttPPPPaaaasssstttteeee....hhhh>>>>
  15.  
  16.           iiiinnnntttt XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddSSSSttttaaaarrrrttttCCCCooooppppyyyy ((((_d_i_s_p_l_a_y, _w_i_n_d_o_w, _c_l_i_p__l_a_b_e_l,
  17.                     _t_i_m_e_s_t_a_m_p, _w_i_d_g_e_t, _c_a_l_l_b_a_c_k, _i_t_e_m__i_d))))
  18.                DDDDiiiissssppppllllaaaayyyy   * _d_i_s_p_l_a_y;;;;
  19.                WWWWiiiinnnnddddoooowwww    _w_i_n_d_o_w;;;;
  20.                XXXXmmmmSSSSttttrrrriiiinnnngggg  _c_l_i_p__l_a_b_e_l;;;;
  21.                TTTTiiiimmmmeeee      _t_i_m_e_s_t_a_m_p;;;;
  22.                WWWWiiiiddddggggeeeetttt    _w_i_d_g_e_t;;;;
  23.                XXXXmmmmCCCCuuuuttttPPPPaaaasssstttteeeePPPPrrrroooocccc_c_a_l_l_b_a_c_k;;;;
  24.                lllloooonnnngggg      * _i_t_e_m__i_d;;;;
  25.  
  26.  
  27.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  28.           This page documents version 1.2 of the Motif library.
  29.  
  30.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  31.           XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddSSSSttttaaaarrrrttttCCCCooooppppyyyy sets up storage and data structures to
  32.           receive clipboard data.  An application calls this function
  33.           during a cut or copy operation.  The data item that these
  34.           structures receive then becomes the next data item in the
  35.           clipboard.
  36.  
  37.           Copying a large piece of data to the clipboard can take a
  38.           long time.  It is possible that, once copied, no application
  39.           will ever request that data.  The Motif Toolkit provides a
  40.           mechanism so that an application does not need to actually
  41.           pass data to the clipboard until the data has been requested
  42.           by some application.
  43.  
  44.           Instead, the application passes format and length
  45.           information in XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddCCCCooooppppyyyy to the clipboard functions,
  46.           along with a widget ID and a callback function address that
  47.           is passed in XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddSSSSttttaaaarrrrttttCCCCooooppppyyyy.  The widget ID is needed
  48.           for communications between the clipboard functions in the
  49.           application that owns the data and the clipboard functions
  50.           in the application that requests the data.
  51.  
  52.           The callback functions are responsible for copying the
  53.           actual data to the clipboard via XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddCCCCooooppppyyyyBBBByyyyNNNNaaaammmmeeee.  The
  54.           callback function is also called if the data item is removed
  55.           from the clipboard, and the actual data is therefore no
  56.           longer needed.
  57.  
  58.  
  59.           _d_i_s_p_l_a_y     Specifies a pointer to the DDDDiiiissssppppllllaaaayyyy structure
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 4/30/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddSSSSttttaaaarrrrttttCCCCooooppppyyyy((((3333XXXX))))  UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV  XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddSSSSttttaaaarrrrttttCCCCooooppppyyyy((((3333XXXX))))
  71.  
  72.  
  73.  
  74.                       that was returned in a previous call to
  75.                       XXXXOOOOppppeeeennnnDDDDiiiissssppppllllaaaayyyy or XXXXttttDDDDiiiissssppppllllaaaayyyy.
  76.  
  77.           _w_i_n_d_o_w      Specifies a widget's window ID that relates the
  78.                       application window to the clipboard.  The
  79.                       widget's window ID can be obtained by using
  80.                       XXXXttttWWWWiiiinnnnddddoooowwww.  The same application instance should
  81.                       pass the same window ID to each of the clipboard
  82.                       functions that it calls.
  83.  
  84.           _c_l_i_p__l_a_b_e_l  Specifies the label to be associated with the
  85.                       data item.  This argument is used to identify
  86.                       the data item, for example, in a clipboard
  87.                       viewer.  An example of a label is the name of
  88.                       the application that places the data in the
  89.                       clipboard.
  90.  
  91.           _t_i_m_e_s_t_a_m_p   Specifies the time of the event that triggered
  92.                       the copy.  A valid timestamp must be supplied;
  93.                       it is not sufficient to use CCCCuuuurrrrrrrreeeennnnttttTTTTiiiimmmmeeee.
  94.  
  95.           _w_i_d_g_e_t      Specifies the ID of the widget that receives
  96.                       messages requesting data previously passed by
  97.                       name.  This argument must be present in order to
  98.                       pass data by name.  Any valid widget ID in your
  99.                       application can be used for this purpose and all
  100.                       the message handling is taken care of by the cut
  101.                       and paste functions.
  102.  
  103.           _c_a_l_l_b_a_c_k    Specifies the address of the callback function
  104.                       that is called when the clipboard needs data
  105.                       that was originally passed by name.  This is
  106.                       also the callback to receive the ddddeeeelllleeeetttteeee message
  107.                       for items that were originally passed by name.
  108.                       This argument must be present in order to pass
  109.                       data by name.
  110.  
  111.           _i_t_e_m__i_d     Specifies the number assigned to this data item.
  112.                       The application uses this number in calls to
  113.                       XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddCCCCooooppppyyyy, XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddEEEEnnnnddddCCCCooooppppyyyy, and
  114.                       XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddCCCCaaaannnncccceeeellllCCCCooooppppyyyy.
  115.  
  116.  
  117.           For more information on passing data by name, see
  118.           XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddCCCCooooppppyyyy((((3333XXXX)))) and XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddCCCCooooppppyyyyBBBByyyyNNNNaaaammmmeeee((((3333XXXX)))).
  119.  
  120.           The _w_i_d_g_e_t and _c_a_l_l_b_a_c_k arguments must be present in order
  121.           to pass data by name. The callback format is as follows:
  122.  
  123.           vvvvooooiiiidddd ((((****_c_a_l_l_b_a_c_k) ((((_w_i_d_g_e_t, _d_a_t_a__i_d, _p_r_i_v_a_t_e, _r_e_a_s_o_n))))
  124.             WWWWiiiiddddggggeeeetttt    _w_i_d_g_e_t;;;;
  125.             iiiinnnntttt       ****_d_a_t_a__i_d;;;;
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 4/30/98)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddSSSSttttaaaarrrrttttCCCCooooppppyyyy((((3333XXXX))))  UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV  XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddSSSSttttaaaarrrrttttCCCCooooppppyyyy((((3333XXXX))))
  137.  
  138.  
  139.  
  140.             iiiinnnntttt       ****_p_r_i_v_a_t_e;;;;
  141.             iiiinnnntttt       ****_r_e_a_s_o_n;;;;
  142.  
  143.  
  144.           _w_i_d_g_e_t      Specifies the ID of the widget passed to this
  145.                       function.
  146.  
  147.           _d_a_t_a__i_d     Specifies the identifying number returned by
  148.                       XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddCCCCooooppppyyyy, which identifies the pass-by-
  149.                       name data.
  150.  
  151.           _p_r_i_v_a_t_e     Specifies the private information passed to
  152.                       XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddCCCCooooppppyyyy.
  153.  
  154.           _r_e_a_s_o_n      Specifies the reason, which is either
  155.                       XXXXmmmmCCCCRRRR____CCCCLLLLIIIIPPPPBBBBOOOOAAAARRRRDDDD____DDDDAAAATTTTAAAA____DDDDEEEELLLLEEEETTTTEEEE or
  156.                       XXXXmmmmCCCCRRRR____CCCCLLLLIIIIPPPPBBBBOOOOAAAARRRRDDDD____DDDDAAAATTTTAAAA____RRRREEEEQQQQUUUUEEEESSSSTTTT.
  157.  
  158.  
  159.      RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  160.           CCCClllliiiippppbbbbooooaaaarrrrddddSSSSuuuucccccccceeeessssssss
  161.                       The function is successful.
  162.  
  163.           CCCClllliiiippppbbbbooooaaaarrrrddddLLLLoooocccckkkkeeeedddd
  164.                       The function failed because the clipboard was
  165.                       locked by another application.  The application
  166.                       can continue to call the function again with the
  167.                       same parameters until the lock goes away.  This
  168.                       gives the application the opportunity to ask if
  169.                       the user wants to keep trying or to give up on
  170.                       the operation.
  171.  
  172.  
  173.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  174.           XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddCCCCaaaannnncccceeeellllCCCCooooppppyyyy((((3333XXXX)))), XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddCCCCooooppppyyyy((((3333XXXX)))),
  175.           XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddCCCCooooppppyyyyBBBByyyyNNNNaaaammmmeeee((((3333XXXX)))), XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddEEEEnnnnddddCCCCooooppppyyyy((((3333XXXX)))),
  176.           XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddEEEEnnnnddddRRRReeeettttrrrriiiieeeevvvveeee((((3333XXXX)))), XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddIIIInnnnqqqquuuuiiiirrrreeeeCCCCoooouuuunnnntttt((((3333XXXX)))),
  177.           XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddIIIInnnnqqqquuuuiiiirrrreeeeFFFFoooorrrrmmmmaaaatttt((((3333XXXX)))), XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddIIIInnnnqqqquuuuiiiirrrreeeeLLLLeeeennnnggggtttthhhh((((3333XXXX)))),
  178.           XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddIIIInnnnqqqquuuuiiiirrrreeeePPPPeeeennnnddddiiiinnnnggggIIIItttteeeemmmmssss((((3333XXXX)))), XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddLLLLoooocccckkkk((((3333XXXX)))),
  179.           XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddRRRReeeeggggiiiisssstttteeeerrrrFFFFoooorrrrmmmmaaaatttt((((3333XXXX)))), XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddRRRReeeettttrrrriiiieeeevvvveeee((((3333XXXX)))),
  180.           XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddSSSSttttaaaarrrrttttRRRReeeettttrrrriiiieeeevvvveeee((((3333XXXX)))), XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddUUUUnnnnddddooooCCCCooooppppyyyy((((3333XXXX)))),
  181.           XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddUUUUnnnnlllloooocccckkkk((((3333XXXX)))), and XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddWWWWiiiitttthhhhddddrrrraaaawwwwFFFFoooorrrrmmmmaaaatttt((((3333XXXX)))).
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.      Page 3                                          (printed 4/30/98)
  196.  
  197.  
  198.  
  199.